var number = 1;  //设置为全局变量

//轮播图图片主体
function startSlide() {
    if (number == 2) {
        number = 0;
        $('#slide_img').css({ left: '0px' });  //处理无缝衔接图
    }
    number++;
    var imageLeft = -1010 * number;
    $('#slide_img').animate({ left: imageLeft })
}

//左右按钮的实现
$('.Larrow').mousedown(function () {
    if (number == 0) {
        $('#slide_img').css({ right: '1010px' });
        number = 2;
    }
    var imageLeft = -1010 * (number - 1);
    $('#slide_img').animate({ left: imageLeft });
    number--;
});

$('.Rarrow').mousedown(function () {
    if (number == 0) {
        $('#slide_img').css({ right: '1010px' });
        number = 2;
    }
    var imageLeft = -1010 * (number - 1);
    $('#slide_img').animate({ left: imageLeft });
    number--;

});